//
//  IKImageBrowserView_WithMagnifySupport.m
//  Dramatis Personae 2
//
//  Created by Joel Owens on 3/28/10.
//  Copyright 2010 Na'Shenassi.org. All rights reserved.
//

#import "IKImageBrowserView_WithMagnifySupport.h"


@implementation IKImageBrowserView ( MagnifySupport )

- (void)magnifyWithEvent:(NSEvent *)magnifyEvent {
  float amount = [magnifyEvent magnification];
  NSLog(@"Pinch Event Detected and Called: Magnification - %f", amount);
  [[self delegate] imageBrowserChangeZoomValueWithEvent:magnifyEvent];
  
}

/*
- (void)swipeWithEvent:(NSEvent *)event {
  NSLog(@"Swipe Detected - DeltaX: %f", [event deltaX]);
  if([event deltaX] < 0) {
    //respond to swipe
    [[NSApp delegate] activatePersonalityView:self];
  } else {
    [super swipeWithEvent:event];
  }
}
*/
@end
